package com.example.mapper;

import com.example.entity.yifei.Cmsmg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-04-02
 */
public interface CmsmgMapper extends BaseMapper<Cmsmg> {
    @Select("select TOP 1 MG014 FROM CMSMG WHERE MG001 = #{coinType} ORDER BY MG002 DESC")
    Double getLatestRate(String coinType);
}
